<%@ page contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ include file="/common/init.jsp"%>
<link href="<c:url value='/admin/css/custom.css'/>" rel="stylesheet" type="text/css" />
<link href="<c:url value='/admin/css/style.css'/>" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	background: #ffffff;
	margin-top:10px;
	margin-left:5px;
	margin-right:5px;
}
-->
</style>
<script type="text/javascript">

</script>
<body>
<div class="EpmsMainTitle">
<p>财务管理</P>
</div>
<div class="EpmsInall">
<div class="EpmsSubTitle"><p><b>查询条件</b></p>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="EpmsTable">
<form action="currdeal.action" method="post" >
	<tr>
    <td width="10%" class="EpmsTdWithColor">
    	<span class="portlet-section-header">会员ID</span></td>
	<td width="23%" class="EpmsTdNoColor">
	 	<input type="text" name="account" class=inputInput value=""  id="projectName"/>
	</td> 
	<td width="10%" class="EpmsTdWithColor">
    	<span class="portlet-section-header">类型</span></td> 
	<td width="23%" class="EpmsTdNoColor" >
		<input type="text" id="subjectType" value="" name="subjectType"/>
	</td>
    </tr>
 <%--  <tr>
    <td width="10%" class="EpmsTdWithColor">
    <span class="portlet-section-header">推荐人</span></td>
    <td width="23%" class="EpmsTdNoColor">
    	<input type="text" id="rep" name="user.recommendId" class="inputInput" value="${user.recommendId}"/>
    </td>	
	<td width="10%" class="EpmsTdWithColor">
	<span class="portlet-section-header">安置人</span></td>
    <td width="23%" class="EpmsTdNoColor">
   		<input type="text" name="user.parentId" id="" value="${user.parentId }" class="inputInput"/>
    </td>
    </tr> --%>

    <tr>
		<td class="EpmsTdNoColor" colspan="4" align="center">
			<div class="EpmsButtonDiv">&nbsp;
			  <input type="submit" name="button" id="querybtn" value="查询" class="inputSubmit" />
			  <input type="reset" name="button" id="button" value="清空" class="inputSubmit" />
			</div>
		</td>
	</tr>
</form>
</table>

<div class="EpmsSubTitle"><p><b>财务明细 </b></p>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="EpmsTable">
  <tr>
	  <td class=EpmsTdTitle>序号</td>
	  <td class=EpmsTdTitle>会员账户</td>
	  <td class=EpmsTdTitle>类型</td>
	  <td class=EpmsTdTitle>收入</td>
	  <td class=EpmsTdTitle>支出</td>
	 <!--  <td class=EpmsTdTitle>财务管理</td> -->
	  <td class=EpmsTdTitle>时间</td>
  </tr>
	<c:forEach var="deal" items="${moneyList}" varStatus="status">
		<tr>
			<td class=EpmsTdNoColor >${status.count}</td>
		    <td class=EpmsTdNoColor >${deal['user_account']}</td>
			<td class=EpmsTdNoColor >${deal['account_subject']}</td>
			<td class=EpmsTdNoColor >${deal['income']} &nbsp;</td>
		    <td class=EpmsTdNoColor >${deal['pay']}&nbsp;</td>
			<td class=EpmsTdNoColor>
				<fmt:formatDate value="${deal['create_date']}" pattern="yyyy-M-dd HH:mm:ss"/>
			</td>
		</tr>
	</c:forEach>
	<tr>
		<td class="EpmsTdNoColor" colspan="10" align="right">
		第${pageNo}页&nbsp;&nbsp;
			<c:choose>
			<c:when test="${pageNo >1}">
				<a href="javascript:void(0);" style="text-decoration: none;">
					<span onclick="frontpage(${pageNo-1})">上一页</span>&nbsp;
				</a>
			</c:when>
			<c:otherwise>
				上一页 &nbsp;
			</c:otherwise>
			</c:choose>
			<c:choose>
				<c:when test="${totalPage> pageNo}">	
					<a href="javascript:void(0);" style="text-decoration: none;">
						<span onclick="nextpage(${pageNo+1})">下一页</span> &nbsp;
					</a>
				</c:when>
				<c:otherwise>
					下一页&nbsp;
				</c:otherwise>
			</c:choose>
			&nbsp;共${totalPage}页
		</td>
	</tr>
</table>
</div>
</body>
<script type="text/javascript">
function frontpage(pageNo){
	location = "${ctx}/admin/currdeal.action?pageNo="+pageNo;
}

function nextpage(pageNo){
	location = "${ctx}/admin/currdeal.action?pageNo="+pageNo;
}
</script>